package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForNotifyNoReadsBaseRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-20
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForNotifyNoReadsBaseRequestConvert extends BaseConvert {
    public static ProjectForNotifyNoReadsBase convert(ProjectForNotifyNoReadsBaseRequest request) throws Exception {
        ProjectForNotifyNoReadsBase daoRequest = new ProjectForNotifyNoReadsBase();
        copyProperties(request, daoRequest);

        daoRequest.setTitle(daoRequest.getTitle() == null ? null : daoRequest.getTitle().trim());
        daoRequest.setContent(daoRequest.getContent() == null ? null : daoRequest.getContent().trim());
        daoRequest.setType(daoRequest.getType() == null ? null : daoRequest.getType().trim());
        daoRequest.setFrom(daoRequest.getFrom() == null ? null : daoRequest.getFrom().trim());
        daoRequest.setTo(daoRequest.getTo() == null ? null : daoRequest.getTo().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setReadTime(daoRequest.getReadTime() == null ? null : daoRequest.getReadTime().trim());
        daoRequest.setSendData(daoRequest.getSendData() == null ? null : daoRequest.getSendData().trim());
        daoRequest.setFinallySendTime(daoRequest.getFinallySendTime() == null ? null : daoRequest.getFinallySendTime().trim());
        daoRequest.setSendTime(daoRequest.getSendTime() == null ? null : daoRequest.getSendTime().trim());
        daoRequest.setAction(daoRequest.getAction() == null ? null : daoRequest.getAction().trim());
        daoRequest.setTerminal(daoRequest.getTerminal() == null ? null : daoRequest.getTerminal().trim());
        daoRequest.setFromType(daoRequest.getFromType() == null ? null : daoRequest.getFromType().trim());
        daoRequest.setAvatar(daoRequest.getAvatar() == null ? null : daoRequest.getAvatar().trim());
        daoRequest.setSourceCode(daoRequest.getSourceCode() == null ? null : daoRequest.getSourceCode().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());

        return daoRequest;
    }
}
